<%--== Handlers ==--%> <%--all_tool_posted Opening Initialization directive @1-A0E75F14--%><%!

// //Workaround for JRun 3.1 @1-F81417CB

//Button_DoSearch Button Handler Head @18-70B34B35
    public class TB_MEMBERSSearchButton_DoSearchButtonHandler implements ButtonListener {
//End Button_DoSearch Button Handler Head

//Button_DoSearch OnClick Method Head @18-A9885EEC
        public void onClick(Event e) {
//End Button_DoSearch OnClick Method Head

//Event OnClick Action Custom Code @20-44795B7A
if (!StringUtils.isEmpty(e.getPage().getHttpGetParameter("TOOL_ID","0"))){
 JDBCConnection conn = JDBCConnectionFactory.getJDBCConnection("Connection1");
  String sql = "insert into tb_tools select  * from tmp_tb_tools where id="+
    conn.toSql(e.getPage().getHttpGetParameter("TOOL_ID","0"),JDBCConnection.INTEGER);
	conn.executeUpdate(sql);
	sql = "delete  tmp_tb_tools where id="+
    conn.toSql(e.getPage().getHttpGetParameter("TOOL_ID","0"),JDBCConnection.INTEGER);
  conn.executeUpdate(sql);
  
  conn.closeConnection();
 
}
/* -------------------------- *
 *  write your own code here  *
 * -------------------------- */
//End Event OnClick Action Custom Code

//Button_DoSearch OnClick Method Tail @18-FCB6E20C
        }
//End Button_DoSearch OnClick Method Tail

//Button_DoSearch BeforeShow Method Head @18-46046458
        public void beforeShow(Event e) {
//End Button_DoSearch BeforeShow Method Head

//Button_DoSearch BeforeShow Method Tail @18-FCB6E20C
        }
//End Button_DoSearch BeforeShow Method Tail

//Button_DoSearch Button Handler Tail @18-FCB6E20C
    }
//End Button_DoSearch Button Handler Tail

//Button1 Button Handler Head @19-7BF2A401
    public class TB_MEMBERSSearchButton1ButtonHandler implements ButtonListener {
//End Button1 Button Handler Head

//Button1 OnClick Method Head @19-A9885EEC
        public void onClick(Event e) {
//End Button1 OnClick Method Head

//Event OnClick Action Custom Code @21-44795B7A
if (!StringUtils.isEmpty(e.getPage().getHttpGetParameter("TOOL_ID","0"))){
 JDBCConnection conn = JDBCConnectionFactory.getJDBCConnection("Connection1");
  String sql = "delete  tmp_tb_tools where id="+
    conn.toSql(e.getPage().getHttpGetParameter("TOOL_ID","0"),JDBCConnection.INTEGER);
  conn.executeUpdate(sql);
  conn.closeConnection(); 
}
/* -------------------------- *
 *  write your own code here  *
 * -------------------------- */
//End Event OnClick Action Custom Code

//Button1 OnClick Method Tail @19-FCB6E20C
        }
//End Button1 OnClick Method Tail

//Button1 BeforeShow Method Head @19-46046458
        public void beforeShow(Event e) {
//End Button1 BeforeShow Method Head

//Button1 BeforeShow Method Tail @19-FCB6E20C
        }
//End Button1 BeforeShow Method Tail

//Button1 Button Handler Tail @19-FCB6E20C
    }
//End Button1 Button Handler Tail

//Comment workaround @1-A0AAE532
%> <%
//End Comment workaround

//Processing @1-787127C0
    Page all_tool_postedModel = (Page)request.getAttribute("all_tool_posted_page");
    Page all_tool_postedParent = (Page)request.getAttribute("all_tool_postedParent");
    if (all_tool_postedModel == null) {
        PageController all_tool_postedCntr = new PageController(request, response, application, "/manager/all_tool_posted.xml", "ISO-8859-1" );
        all_tool_postedModel = all_tool_postedCntr.getPage();
        //if (all_tool_postedParent != null) {
            //if (!all_tool_postedParent.getChild(all_tool_postedModel.getName()).isVisible()) return;
        //}
    ((Button)((Component)all_tool_postedModel.getChild("TB_MEMBERSSearch")).getChild("Button_DoSearch")).addButtonListener(new TB_MEMBERSSearchButton_DoSearchButtonHandler());
    ((Button)((Component)all_tool_postedModel.getChild("TB_MEMBERSSearch")).getChild("Button1")).addButtonListener(new TB_MEMBERSSearchButton1ButtonHandler());
        all_tool_postedCntr.process();
%>
<%
        if (all_tool_postedParent == null) {
            if (all_tool_postedModel.redirect()) return;
            all_tool_postedModel.setCookies();
        } else {
            all_tool_postedModel.redirect();
        }
    }
//End Processing

%>
